package java46_002;

import java.util.Scanner;

public class T9_25_1 {
	public static void main(String[] args) {
		System.out.println("请输入您的工资:");
		Scanner input = new Scanner(System.in);
		double qian = input.nextDouble();
		if(qian<3500){
			System.out.println("您工资太低，不用交税！");
		}else if((qian>3500)&&(8000>qian)){
			System.out.println("您的个人所交税为："+(qian-3500)*0.02+"￥");
		}else if((qian>8000)&&(qian<20000)){
			System.out.println("您的个人所交税为："+(((8000-3500)*0.02)+(qian-8000)*0.05)+"￥");
		}else if(qian>20000){
			System.out.println("您的个人所交税为："+(((8000-3500)*0.02)+(qian-20000)*0.1)+(qian-8000)*0.05)"￥");
			
			
		}
		
	}
	

}
